/**
 * Copyright 2025 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

@use "sass:color";

@use "@angular/material" as mat;

$verified-icon-color: mat.m2-get-color-from-palette(
  mat.$m2-indigo-palette,
  400
);
$error-icon-color: mat.m2-get-color-from-palette(mat.$m2-red-palette, 400);
$dirty-icon-color: mat.m2-get-color-from-palette(mat.$m2-gray-palette, 400);

$dirty-icon-size: 15px;

.label-row {
  display: grid;
  grid-template-areas: "validation title dirty";
  gap: 3px;
  justify-content: start;
  align-items: center;

  .dirty {
    color: $dirty-icon-color;
    width: $dirty-icon-size;
    height: $dirty-icon-size;
    font-size: $dirty-icon-size;
  }
}

.label {
  flex: 1;
  font-weight: 600;
  margin: 0px;
}

.verified {
  color: $verified-icon-color;
}

.error {
  color: $error-icon-color;
}

.description {
  margin: 0px 0px 2px 20px;
  font-size: 12px;
  line-height: 16px;
}
